function _commpreview()
{
	var comm_form = _j('#reply_form .body'),
		comm_area = _j('#comment_textarea');

	if (comm_area)
	{
		var preview_button = _j('<div id="preview_comm_btn" style="cursor: pointer">Предосмотр</div>'),
			preview_area = _j('<div id="preview_comm" style="margin: 5px 0; background: #f2f2f2; padding: 5px 10px; font-size: 13px; display:none"></div>');
		
		preview_button.click(function(){
			var _text = comm_area.val().replace(/<irony>/g, '<span class=irony>').replace(/<\/irony>/g, '<\/span>').replace(/\n/g, '<br />\n');;
			preview_area.html(_text).slideDown();
		});
		
		comm_form.append(preview_button);
		comm_form.append(preview_area);
	}
}

_j(document).ready(function(){ _commpreview() });